package website.lucaswork.survey.core.services;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import website.lucaswork.survey.core.dtos.SurveySummaryDTO;
import website.lucaswork.survey.core.entities.Survey;
import website.lucaswork.survey.core.entities.User;

public interface SurveyService {
    public SurveySummaryDTO getSurveyInfo(int id);

    public Page<SurveySummaryDTO> getPageSurveys(Pageable pageable);

    public Page<SurveySummaryDTO> getSearchPageSurveys(String keyword, Pageable pageable);

    public Survey saveSurvey(Survey survey);

    public Survey getSurveyByTitleAndUser(String title, User user);

    public Survey getSruveyBySlug(String slug);
}
